<script setup lang="ts">
const ipcHandle = () => window.electron.ipcRenderer.send('ping')
window.electron.ipcRenderer.invoke('你好', { a: '你好，我是小爱同学' })

const newWindow = () => {
  window.electron.ipcRenderer.invoke('new-window')
}
</script>

<template>
  <a target="_blank" rel="noreferrer" @click="ipcHandle">Send IPC</a>
  <button @click="newWindow">创建一个新窗口</button>
  <el-button plain> 切换页面 </el-button>
</template>

<style scoped>

</style>
